using System;
using Utk.Nlp;

namespace Utk
{
    static class User
    {
        public static void Say(string text)
        {
            Console.WriteLine(text);
        }

        public static void Say(IGenerator generator)
        {
            Say(generator.Generate());
        }

        public static string Listen()
        {
            Console.Write("-:");
            return Console.ReadLine().Trim();
        }

        public static string Listen(string request)
        {
            return Listen(new Pattern(request));
        }

        public static string Listen(IGenerator generator)
        {
            Say(generator);
            return Listen();
        }
    }
}
